import {cert_list, hig_eduList, work_duty_list} from "@/assets/staticList";
import certFactor from "@/utils/certFactor";

let flagFilter = (level,form) => {
    let {hig_edu,work_duty,cert} = form;
    let hig_eduCode = hig_eduList.filter((item) => item.value == hig_edu)[0].id;
    let work_dutyCode = work_duty_list.filter((item) => item.value == work_duty)[0].id
    let certCode = cert_list.filter((item) => item.value == cert)[0].id
    let higEduFlag = certFactor(level,form.work_age,hig_eduCode)
    let workDutyFlag = certFactor(level,form.work_age,work_dutyCode)
    let CertFlag = certFactor(level,form.work_age,certCode)
    console.log('学历',higEduFlag,'职务',workDutyFlag,'证书',CertFlag)
    if(higEduFlag || workDutyFlag || CertFlag){
        return true
    }
}
export {
    flagFilter
}